import https from "./http"
import { React, useState, useEffect } from 'react'

const Vote = () => {
    const [vote, setVote] = useState(null);
    useEffect(() => {
        https('Vote/getAll', "get", res => {
            setVote(res.data.length)
        });
    }, []);
    useEffect(() => { },
        [
            vote
        ]);
    return (
        vote
    )
}

export default Vote
